package cn.wk.exception;

public enum SystemError {

    NOT_MATCH(400,"参数不匹配"),

    ERROR_SYSTEM(500,"系统错误");


    private Integer statuCode;
    private String reason;

    SystemError() {
    }

    SystemError(Integer statuCode,String reason){
        this.statuCode = statuCode;
        this.reason = reason;
    }

    public Integer getStatuCode() {
        return statuCode;
    }

    public void setStatuCode(Integer statuCode) {
        this.statuCode = statuCode;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    @Override
    public String toString() {
        return "SystemError{" +
                "statuCode=" + statuCode +
                ", reason='" + reason + '\'' +
                '}';
    }
}
